﻿using System.Threading.Tasks;
using System.Windows;

namespace TestS7Conm
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public static TaskCompletionSource<bool> completionTask = new TaskCompletionSource<bool>();
        public static Task Completion => completionTask.Task;

        protected override void OnExit(ExitEventArgs e)
        {
            completionTask.TrySetResult(true);
        }
    }
}
